package cn.yuanqiao.archive.detection.mapper;

import cn.yuanqiao.archive.detection.domain.Detection;
import cn.yuanqiao.archive.detection.domain.InspectionLogs;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 错误详情Mapper接口
 * 
 * @author xy
 * @date 2023-08-10
 */
@Mapper
public interface InspectionLogsMapper 
{
    /**
     * 查询错误详情
     * 
     * @param id 错误详情主键
     * @return 错误详情
     */
    public InspectionLogs selectInspectionLogsById(Long id);

    /**
     * 查询错误详情列表
     * 
     * @param inspectionLogs 错误详情
     * @return 错误详情集合
     */
    public List<InspectionLogs> selectInspectionLogsList(InspectionLogs inspectionLogs);

    /**
     * 新增错误详情
     * 
     * @param inspectionLogs 错误详情
     * @return 结果
     */
    public int insertInspectionLogs(InspectionLogs inspectionLogs);

    /**
     * 修改错误详情
     * 
     * @param inspectionLogs 错误详情
     * @return 结果
     */
    public int updateInspectionLogs(InspectionLogs inspectionLogs);

    /**
     * 删除错误详情
     * 
     * @param id 错误详情主键
     * @return 结果
     */
    public int deleteInspectionLogsById(Long id);

    /**
     * 批量删除错误详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInspectionLogsByIds(Long[] ids);

    String getJcfw(@Param("dId") String dId, @Param("id") Long id, @Param("tableName")String tableName);

    List<Detection> getDetection(@Param("list") List<InspectionLogs> inspectionLogsList);

    String getDetectionContent(@Param("id") Long id);

    Long getDetectionDid(@Param("dName") String dName);

    String getJcfwId(@Param("dId") String dId,@Param("id") Long id, @Param("tableName")String tableName);

    void insertBatchInspectionLogs(@Param("list") List<InspectionLogs> list, @Param("tableName") String tableName);
}
